from __future__ import absolute_import, unicode_literals

from celery.schedules import crontab

timezone='Asia/Shanghai'
task_serializer='json'
accept_content=['json']  # Ignore other content
result_serializer='json'
worker_concurrency=2

broker_url='redis://:f46c7ac2c3d49ad9@10.100.11.147:6379/5'
result_backend='redis://:f46c7ac2c3d49ad9@10.100.11.147:6379/6'
#result_backend='django-cache'
worker_pool_restarts=True
worker_prefetch_multiplier=1
# beat_schedule={
#     "add": {
#         "task": "tasks.add",
#         "schedule": crontab(minute="*"),
#         "args": (16, 16)
#     },
#     "command": {
#         "task": "tasks.command",
#         "schedule": 10,
#         # "args": None
#     },
# }
include=['proj.tasks']





